package com.spa.modules.system.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.spa.common.api.vo.Result;
import com.spa.common.aspect.annotation.AutoLog;
import com.spa.modules.base.service.SysLogService;

import io.swagger.annotations.Api;

/**
 * 描述: 系统日志
 * author: P0081447
 * date: 2022-06-27 20:54:15
 */
@Api(tags="系统日志")
@RestController
@RequestMapping(value="/sys/sysLog")
public class SysLogController {

    @Autowired
	private SysLogService sysLogService;
	
	/**
	 * 分页列表查询
	 * 
	 * @param sysLog
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	@AutoLog(value = "系统日志-列表")
	@GetMapping(value = "/listByPage")
	public Result<?> queryPageList(HttpServletRequest req, @RequestParam(name = "page", defaultValue = "1") Integer page,
			@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) {
		return sysLogService.queryPageList(req, page, pageSize);
	}
}
